package com.warmlight.voicepacket.service;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by weiweijinpeng on 2018/8/6.
 */

public class MultimediaInfo implements Parcelable {


    /** 视频信息 */
    private String multimediaId;        /** 媒体id */

    /** 视频 */
    private String videoName;           /** 文件名称 */
    private String videoPath;           /** 文件磁盘地址 */
    private String videoUrl;


    /** 文件网络链接 */

    private long totalSize;             /** 文件长度 */
    private long downSize;              /** 下载长度 */
    private int downStatus;             /** 下载状态 */
    private int downProgress;           /** 下载进度 */

    private int videoWide;              /** 视频宽 */
    private int videoHigh;              /** 视频高 */


    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public long getDownSize() {
        return downSize;
    }

    public void setDownSize(long downSize) {
        this.downSize = downSize;
    }

    public int getDownStatus() {
        return downStatus;
    }

    public void setDownStatus(int downStatus) {
        this.downStatus = downStatus;
    }

    public int getDownProgress() {
        return downProgress;
    }

    public void setDownProgress(int downProgress) {
        this.downProgress = downProgress;
    }

    public int getVideoWide() {
        return videoWide;
    }

    public void setVideoWide(int videoWide) {
        this.videoWide = videoWide;
    }

    public int getVideoHigh() {
        return videoHigh;
    }

    public void setVideoHigh(int videoHigh) {
        this.videoHigh = videoHigh;
    }


    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getMultimediaId() {
        return multimediaId;
    }

    public void setMultimediaId(String multimediaId) {
        this.multimediaId = multimediaId;
    }



    @Override
    public String toString() {
        return "MultimediaInfo{" +
                "multimediaId='" + multimediaId + '\'' +
                ", videoName='" + videoName + '\'' +
                ", videoPath='" + videoPath + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                ", totalSize=" + totalSize +
                ", downSize=" + downSize +
                ", downStatus=" + downStatus +
                ", downProgress=" + downProgress +
                ", videoWide=" + videoWide +
                ", videoHigh=" + videoHigh +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.multimediaId);
        dest.writeString(this.videoName);
        dest.writeString(this.videoPath);
        dest.writeString(this.videoUrl);
        dest.writeLong(this.totalSize);
        dest.writeLong(this.downSize);
        dest.writeInt(this.downStatus);
        dest.writeInt(this.downProgress);
        dest.writeInt(this.videoWide);
        dest.writeInt(this.videoHigh);
    }

    public MultimediaInfo() {
    }

    protected MultimediaInfo(Parcel in) {
        this.multimediaId = in.readString();
        this.videoName = in.readString();
        this.videoPath = in.readString();
        this.videoUrl = in.readString();
        this.totalSize = in.readLong();
        this.downSize = in.readLong();
        this.downStatus = in.readInt();
        this.downProgress = in.readInt();
        this.videoWide = in.readInt();
        this.videoHigh = in.readInt();
    }

    public static final Creator<MultimediaInfo> CREATOR = new Creator<MultimediaInfo>() {
        @Override
        public MultimediaInfo createFromParcel(Parcel source) {
            return new MultimediaInfo(source);
        }

        @Override
        public MultimediaInfo[] newArray(int size) {
            return new MultimediaInfo[size];
        }
    };

}
